package com.tanhua.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.manager.vo.AnalysisByDay;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author 阿鹏
 * @date 2021/2/21 14:38
 */

public interface AnalysisMapper extends BaseMapper<AnalysisByDay> {

    @Select("select sum(num_registered) from tb_analysis_by_day")
    Long cumulativeUsers();

    @Select("select sum(num_active) from tb_analysis_by_day where record_date between #{startDate} and #{endDate}")
    Long queryCountByBetweenAnd(@Param("startDate") String start,@Param("endDate") String end);
}
